import Vue from 'vue'
const user = {
    state: {
        commonQueryOptions: localStorage.getItem('commonQueryOptions') ? JSON.parse(localStorage.getItem('commonQueryOptions')) : [],
    },

    mutations: {
        SET_COMMON_QUERY_OPTIONS: (state, commonQueryOptions) => {
            localStorage.setItem('commonQueryOptions', JSON.stringify(commonQueryOptions))
            state.commonQueryOptions = commonQueryOptions
        },
    },
}

export default user